import type {
  LoginParams,
  LoginResultModel,
  CaptchaResultModel,
} from "@/types";

export const loginApi = (params: LoginParams) => {
  return usePost<LoginResultModel, LoginParams>("/base/login", params);
};

export const createCaptcha = () => {
  return usePost<CaptchaResultModel>("/base/captcha");
};
